<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page contentType="text/html;charset=utf-8" pageEncoding="utf-8"
         language="java" %>
<%@ include file="/jsp/platform/include/include.jsp" %>
<html>
<head>
    <TITLE><c:out value="${_LOGONUSER_.MANAGETITILE}"/></TITLE>
    <META http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <%@ include file="/jsp/platform/include/header.jsp" %>

</head>
<BODY>
<DIV class="all">
    <%@ include file="/jsp/platform/include/head.jsp" %>
    <%@ include file="/jsp/platform/include/menu.jsp" %>
    <DIV class="mains">
        <TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
            <TBODY>
            <TR valign="top">
                <%@ include file="/jsp/platform/include/mainLeft.jsp" %>
                <TD>
                    <TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
                        <TBODY>
                        <TR>
                            <TD>
                                <TABLE width="180" border="0" cellspacing="0" cellpadding="0">
                                    <TBODY>
                                    <TR>
                                        <TD width="7"><IMG width="7" height="36" alt=""
                                                           src="<%=request.getContextPath()%>/images/pages_l.jpg">
                                        </TD>
                                        <TD align="center"
                                            background="<%=request.getContextPath()%>/images/pages_bg.jpg">
                                            <SPAN class="f_tit1">公告新增</SPAN></TD>
                                        <TD width="7"><IMG width="7" height="36" alt=""
                                                           src="<%=request.getContextPath()%>/images/pages_r.jpg">
                                        </TD>
                                    </TR>
                                    </TBODY>
                                </TABLE>
                            </TD>
                        </TR>
                        </TBODY>
                        <TR>
                            <TD>
                                <div class="pages_con">
                                    <FORM name="addNoticeForm" id="addNoticeForm"
                                          action="<%=request.getContextPath()%>/manage/notice/addNotice" method="post">
                                        <div class="pages_con_20">
                                            <div class="transaction_external">
                                                <DIV class="clearfix">
                                                            <SPAN class="label dl_w" style="padding-left:20px;text-align:right;">影响时间：</SPAN>
                                                            <DIV class="select2 date">
                                                                <INPUT name="beginDate" class="easyui-datebox"
                                                                       id="beginDate" style="border:none" type="text"
                                                                       data-options="formatter:myformatter,parser:myparser">
                                                            </DIV>
                                                            <SPAN class="label margin_l_5">-</SPAN>
                                                            <DIV class="select2 date">
                                                                <INPUT name="endDate" class="easyui-datebox"
                                                                       id="endDate" style="border:none" type="text"
                                                                       data-options="formatter:myformatter,parser:myparser">
                                                            </DIV>

                                                            <SPAN class="fund-item"><SPAN class="label dl_w"
                                                                                  style="padding-left:20px;text-align:right;">公告标题：</SPAN>
                                                                  <INPUT name="noticeTitle" id="noticeTitle"
                                                                         class="txtbox_cz txtbox_cz_long txtbox_cz_color input_change"
                                                                         type="text" maxlength="30"/>
                                                            </SPAN>
                                                </DIV>
                                                <DIV class="clearfix">
                                                            <SPAN class="label dl_w"
                                                                  style="padding-left:20px;text-align:right;">公告内容：</SPAN>
                                                                  <%--<textarea name="noticeContent" id="noticeContent" cols="20" rows="5"/>--%>
                                                                  <input name="noticeContent" id="noticeContent"
                                                                        class="txtbox_cz txtbox_cz_long txtbox_cz_color input_change"
                                                                        type="text" maxlength="300"/>

                                                            <SPAN class="fund-item"> <A class="btn confirm margin_l_10"
                                                            onClick="javaScript:addNotice();" href="javascript:void(0);">新增</A> </SPAN>
                                                </DIV>
                                            </DIV>
                                            <br>
                                        </div>
                                    </FORM>
                                </div> <!--当中内容块结束-->
                            </TD>
                        </TR>
                    </TABLE>
                </TD>
            </TR>
            </TBODY>
        </TABLE>
    </DIV>
    <%@ include file="/jsp/platform/include/foot.jsp" %>
        <script type="text/javascript">
            function addNotice() {
                var beginDate = $("input[name='beginDate']").val();
                var endDate = $("input[name='endDate']").val();
                var noticeTitle = $("#noticeTitle").val();
                var noticeContent = $("#noticeContent").val();
                if(beginDate==""){
                    showMessage('开始时间不能为空');
                    return;
                }
                if (endDate==""){
                    showMessage('结束时间不能为空');
                    return;
                }
                if (noticeTitle==""){
                    showMessage('公告标题不能为空');
                    return;
                }
                if (noticeContent==""){
                    showMessage('公告内容不能为空');
                    return;
                }
                $.messager.confirm("操作提示", "您确定要提交吗？", function (data) {
                    if(data){
                        $('#addNoticeForm').submit();
                    }
                });
            }
        </script>
</BODY>
</HTML>
